package com.qf.qfwemedia.controller.v1;

import com.qf.qfleadnewsmodel.commons.dtos.ResponseResult;
import com.qf.qfleadnewsmodel.wemedia.dtos.LoginDto;
import com.qf.qfwemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private WmUserService wmUserService;

    @PostMapping("/login/in")
    public ResponseResult login(@RequestBody LoginDto loginDto){

        return wmUserService.login(loginDto);
    }
}
